home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / today23.arc / TODAY23.DOC < prev    next >
Text File  |  1989-05-16  |  16KB  |  355 lines

  1.  
  2.                        ---TODAY  V2.3---
  3.  
  4. VERSIONS
  5. 2.3  Fixed a month wraparound bug.
  6. 2.2  Fixed superfluous reminder dates and day-of-week test.
  7. 2.1  Added PAINT color option, fixed big file read bug.
  8.  
  9. INTRODUCTION
  10. Have you ever thought it would be nice to know what interesting
  11. things happened on a date in history?  When famous, or not so
  12. famous, birthdays occurred?  TODAY will tell you.  When the program
  13. is run, it looks at the system date, or a date you supply, then
  14. tells you what things of interest happened on that date.  You can
  15. even create a file of dates important to you and be reminded of them
  16. right along with the Marquis de Sade's birthday or the first
  17. commercial radio broadcast.  For a quick start type: TODAY HELP
  18.  
  19. REQUIRED FILES
  20. TODAY is distributed as an archive file(TODAY21.ARC) and you must have
  21. ARC V5.0 or later to extract the required files.  ARC is shareware
  22. from System Enhancement Associates and is available on many computer
  23. bulletin boards.  The files I put into TODAY.ARC are:
  24.  
  25.        -READ.ME      - A very brief introduction
  26.        TODAY21.DOC   - This file
  27.        TODAY21.EXE   - The program
  28.        TODAY.MON     - where MON is JAN thru DEC.  These 12 files
  29.                        contain all the interesting trivia.
  30.        TODAY.OWN     - a sample personal TODAY message file
  31.        TODAYBUG.BAT  - Displays the TODAY Return Code when reporting
  32.                        bugs.
  33.  
  34. After printing this DOC file, you need not keep it on disk but you
  35. will need the EXE and all the MON files.  They MUST all be in the
  36. current directory or you must tell TODAY where they are with the
  37. set today=path command before running TODAY or use the DIR option
  38. on the command line.
  39.  
  40. INSTALLATION
  41. To install TODAY, you must have the ARC program available, then
  42. create a directory for TODAY, enter it and un-arc the files.  Here
  43. is an example of how you might do it:
  44.  
  45.      md \today
  46.      cd \today
  47.      { Copy TODAY21.ARC to this directory }
  48.      arc e today2 *.*
  49.      rename today2.exe today.exe   { Remove version number }
  50.      today
  51.  
  52. This will create a directory called today, un-archive the files you
  53. need to use the system, then run the program.  Note that you should
  54. probably rename TODAY21 to TODAY as used in all further examples.
  55.  
  56. To run it from your AUTOEXEC.BAT you would insert these three lines:
  57.  
  58.      cd \today
  59.      today once clear wait      (use your choice of options)
  60.      cd \
  61.  
  62. This example would change directories to TODAY's directory, run the
  63. program only once each day, clearing the screen at the beginning and
  64. waiting for a key press at the end before continuing with your BAT
  65. file.
  66.  
  67. RUNNING TODAY
  68. The TODAY program expects to find its data files in the current
  69. directory or in one specified with SET TODAY= or the DIR command
  70. line option.  SET is an MSDOS command and must be entered before
  71. you run TODAY.  Which one you use is entirely up to you, however be
  72. aware that the DIR option will override the SET command directory.
  73.  
  74. If you wish to use the ONCE option, you cannot just put the program
  75. in a directory contained in your PATH.  The program will execute but
  76. the program file will not be updated to reflect the last time you
  77. ran it.  You MUST  "cd" into the directory containing the program
  78. file, run it, then cd back to where you want to be.  There is a nice
  79. pair of public domain utilities PUSHD and POPD that can cd to a
  80. directory, then return to whatever directory you were in
  81. automatically.  I use these in a TODAY.BAT for interactive use.  I
  82. don't know who wrote them but they make things nicer than without
  83. them.
  84.  
  85. TODAY OPTIONS
  86. You can just enter TODAY and get the scoop on the current date or
  87. you can optionally enter a date as MMDD, with leading zeros, to see
  88. what happened on a particular date.  There are several options:
  89.  
  90. ALTFN  filename   allows you to specify an alternate data filename
  91.                   instead of TODAY.  If you are setting up special
  92.                   databases you could now have MUSIC.JAN-MUSIC.DEC
  93.                   or whatever.  You create these files in exactly
  94.                   the same format as the regular TODAY files and
  95.                   then on the TODAY command line you would enter:
  96.                   TODAY ALTFN MUSIC to continue our earlier example.
  97.                   You only enter the eight character filename and
  98.                   these twelve monthly files will be used instead
  99.                   of TODAY's default monthly files.  More below...
  100.  
  101. CLEAR             will clear the screen before displaying anything
  102.  
  103. DIR path          specifies a directory other than the current one
  104.                   that contains the TODAY data files.  If another
  105.                   path is also specified with SET TODAY=, this one
  106.                   will override the SET.  Ex: TODAY  DIR \TODAY
  107.  
  108. HELP or ?         will display an online summary of instructions
  109.  
  110. MMDD              a date, such as 0401, to use instead of the system
  111.                   date. Note that leading zeroes are required for
  112.                   single digit days and months.
  113.  
  114. NOPAUSE           do not pause when there too many messages to fit
  115.                   on one screen.  This is handy when redirecting
  116.                   output to a file.
  117.  
  118. ONCE              will only run TODAY once each day.  Without this
  119.                   option it will display msgs each time it is run.
  120.                   Used in an AUTOEXEC.BAT, it will only run TODAY
  121.                   when you turn on your system, not when you reboot.
  122.                   You must CD into the directory in which TODAY.EXE
  123.                   resides for this option to work.
  124.  
  125. PAINT             "paints" the messages in default colors or you can
  126.                   roll your own.  See the details below.
  127.  
  128. WAIT              will wait for a key press after the display
  129.  
  130. Most of these options are useful when TODAY is run from an
  131. AUTOEXEC.BAT when you turn on your machine.  You may only want to
  132. run when you power on, not when you re-boot.  You can clear the
  133. screen of previous stuff before today's little gems and you can have
  134. a pause at the end so the messages aren't destroyed by subsequent
  135. programs.  To do this:  TODAY ONCE CLEAR WAIT
  136.  
  137. CUSTOMIZATION
  138. TODAY has one data file for each month of the year.  They are named
  139. TODAY.JAN, .FEB, .MAR etc.  You can also have a personal file named
  140. TODAY.OWN.  This is so all YOUR important dates aren't scattered
  141. among 12 files.  All files are plain vanilla ASCII in this format:
  142.  
  143. Column 1:        The record type which can be a B for birthdays,
  144.                  S for special dates in history or R for a reminder.
  145.  
  146. Cols 2-5:        Month and day as MMDD with leading zeros.  Zeros
  147.                  for either month or day cause ALL months or days
  148.                  to match when being scanned.  For example  0001
  149.                  would match the first of every month while 0400
  150.                  would match every day of April.
  151.  
  152. Cols 6-9:        The full year of the event as four digits.  It
  153.                  may be left blank or, for Reminders only, you
  154.                  may enter another MMDD that is an ending date
  155.                  corresponding to the starting date in columns
  156.                  2-5. See NEW REMINDER FORMAT below for details.
  157.                  A year in this part of a Reminder record will
  158.                  cause an invalid date error message.
  159.  
  160. Column 10:       A special processing flag.  Values may be:
  161.  
  162.                  BLANK for no special processing.
  163.  
  164.                  C to continue a message from the previous line.
  165.                  Note, that you MUST REPEAT the date fields.
  166.  
  167.                  DAY-OF-WEEK DIGIT where 1=Sunday ... 7=Saturday
  168.                  This will cause the message to display only if the
  169.                  date falls on a certain day of the week.  Look in
  170.                  the November file for voting day examples.
  171.  
  172. Cols 11-70       The message to display for this date.
  173.  
  174.                        --EXAMPLES--
  175.  
  176. *mmddyyyy Birthdays
  177. *-------- ------------------------------------------------------------
  178. B09011875 Edgar Rice Burroughs, novelist, Ah-ee-ah-ee-ah!
  179. B09021838 Queen Liliuokalani (last queen of Hawaii).
  180. B09021952 Jimmy Connors, tennis brat
  181.  
  182. *mmddyyyy Events
  183. *-------- ------------------------------------------------------------
  184. S09011939 Germany invades Poland, starts World War II.
  185. S09011952 Sutro Baths purchased by George Whitney.
  186. S0901    2Labor Day, a legal holiday
  187. S09021620 The Mayflower sets sail from Plymouth with
  188. S09021620C102 Pilgrims.
  189.  
  190. *mmddyyyy Reminders
  191. *-------- ------------------------------------------------------------
  192. R0001     Pay the mortgage!
  193. R0401     Taxes due in two weeks.
  194. R0415     Last day to pay taxes!
  195.  
  196. Leave the headings in or you may get a nasty surprise.  Note that
  197. Labor day must be on a Monday and the Mayflower gets two lines of
  198. coverage befitting that momentous event.
  199.  
  200. This format applies to TODAY.OWN also.  You can put in birthdays,
  201. anniversaries, holidays etc.  Messages in your personal file will
  202. tend to be only Birthdays and Reminders.  Also, try putting in
  203. reminders a few days BEFORE the date in question to give youself
  204. some warning.
  205.  
  206. NEW REMINDER FORMAT
  207. Reminders used to be a one shot deal.  You could have them appear
  208. on any one date or on any one day every month.  But reminders are
  209. most useful when you can get jogged for several days.  After all,
  210. you might not even get on the computer every day.  Here's the
  211. answer:  the four columns immediately following the month and day
  212. normally hold a four digit year or blanks.  You can now put a
  213. beginning month and day in columns 2-5 and an ending month and day
  214. in columns 6-9.  This way you don't have to put in a separate
  215. reminder for every day.  It saves a lot of typing!  For example:
  216.  
  217. R05010508 Forget Daryl's Birthday at your peril!
  218. R0509     Did you remember Dayrl's birthday TODAY?
  219.  
  220. reminds me not to forget my wife's birthday every day from May 1
  221. to May 8.  Then on the 9th, there is the usual one shot reminder.
  222.  
  223. Another nice feature is the monthly reminder.  Just set the month
  224. portion of the date to zero and the reminder will appear every
  225. month on the days you specify.  For example:
  226.  
  227. R00050014 First mortgage due on the 15th.
  228.  
  229. But it gets even better!  What if the date you need to be reminded
  230. of falls on the 5th of the month and you want to be reminded from
  231. the 27th of one month to the 4th of the following month?  No
  232. problem!  If TODAY sees that the day of the month for the second
  233. date is less than the day in the first date, it assumes that the
  234. second date is in the following month.  Not bad eh?  Here's how:
  235.  
  236. R00270004 Second mortgage due on the 5th.
  237.  
  238. I think this new reminder system is a vast improvement over the
  239. old one and will prove much more useful.
  240.  
  241. ALT FILENAME
  242. I've been told that many people are setting up TODAY systems for
  243. special interests such as MUSIC and SPACE.  Also, I've gotten many
  244. thousands of dates from many generous people out there and have been
  245. overwhelmed with how to organize it.  I think I've found an answer.
  246. The ALT FN option provides a way to arrange dates in monthly files
  247. by topic in addition to date.  The format of the files is identical,
  248. there are still twelve monthly files and TODAY.OWN will still always
  249. be read.  Now there can be a set of files for ALASKA, another for
  250. NASA and even one for great dates in culinary history.  I'm excited
  251. about this concept and hope it works out well.
  252.  
  253. PAINT
  254. This option displays the TODAY messages in color via the ANSI driver
  255. that comes with MSDOS.  This means you must have DEVICE=ANSI.SYS in
  256. your config.sys file.  If you don't like my choices, make up your own.
  257. Immediately following the word PAINT, with no intervening space, enter
  258. five digits corresponding to the various colors to set.  They are:
  259.  
  260.                Position Definition                   Color Codes
  261.           +-----1 - Greetings                         1 - Red
  262.           |+----2 - Group Headings                    2 - Green
  263.           ||+---3 - YEAR in messages                  3 - Amber
  264.           |||+--4 - Message text                      4 - Blue
  265.           ||||+-5 - Reset color after TODAY           5 - Magenta
  266.           |||||                                       6 - Cyan
  267. eg:  PAINT66217  <--default colors                    7 - White
  268.  
  269. As you can see from the example that the default colors are cyan
  270. greetings, green years, red messages and reset to white after TODAY.
  271. Why the word PAINT instead of COLOR?  I identify options by the first
  272. character and C was already used by CLEAR.  If you don't already know
  273. the importance of backward compatibility, someday you will.
  274.  
  275. Since the colors are those provided by the ANSI.SYS driver, there are
  276. no other choices.  Also, the colors appear differently on different
  277. monitors.  Amber(3) on my screen may be yellow or brown on yours.  So
  278. I thought it best to let you set your own if you like.
  279.  
  280. SYSOPs note:  if you use the paint option when creating a daily
  281. message, you will do all sorts of nasty things to your users if they
  282. aren't set up to handle ANSI graphics.
  283.  
  284.  
  285. HISTORY
  286. TODAY/PC was written in Datalight C for IBM PC compatible systems
  287. by Patrick Kincaid in July of 1986.  It was inspired by a program
  288. originally written by Mike Butler in PL/1 on an IBM VM/CMS
  289. system. He should be credited with the original concept and the
  290. bulk of the wonderful data in the original files.  You will
  291. notice a distinct San Francisco flavor to the databases.  Who
  292. says programs can't have class?
  293.  
  294. VERSION 2.0
  295. In March of 1988, I converted the program to Microsoft C 5.0 and
  296. added new features that you asked for.  I hope you like them.
  297.  
  298. In 2.0 you can:
  299.  
  300.    * Specify a path, via the MSDOS SET command or a TODAY command
  301.      line option, where the data files are to be found.
  302.    * Read data files of any size
  303.    * Specify an alternate filename such as MUSIC or SPACE for
  304.      special date databases
  305.    * Give a beginning and ending date for Reminders
  306.    * Turn off the full screen pause (good when redirecting output)
  307.  
  308.  
  309. VERSION 2.1
  310. Adds the following features:
  311.  
  312.    * Display messages in color
  313.  
  314.    * Date displays other than the default merely confirm the date
  315.      selected rather than the full greeting.
  316.  
  317.    * Fixes a big bug reading large files.
  318.  
  319. VERSION 2.2
  320. Fixes extra reminder dates appearing and day-of-week test which
  321. stopped working.  Gave it a raise and all is well.  Minor clari-
  322. fications were made to the documentation.
  323.  
  324. If anyone has any problems with this new version that are bugs,
  325. not a failure to read the documentation, please let me know.  Run
  326. TODAY from the TODAYBUG.BAT and report the Error Message and
  327. Return Code along with a description of the problem.  An example
  328. of how to recreate the problem is most helpful.
  329.  
  330.  
  331. USER SUPPORT
  332. Don't send money, send more dates!  I would like the program
  333. distributed far and wide for free with this understanding: if you
  334. like it, make up more date files and spread them around.  Let's
  335. create some REAL shareware.
  336.  
  337. Also, I understand that some deadhead out there hacked up the program
  338. and redistributed it.  Now I'm not asking for money, just a little
  339. recognition and satisfaction in writing a program that people like.
  340. If you should find out who does things like this, please publish his
  341. name so he can get the type of recognition HE deserves.
  342.  
  343. You can reach me electronically via the Marin-Sonoma PC User Group
  344. BBS (415) 927-1216 (recommended).  You can mail listings, bugs
  345. (features!) or suggestions to:
  346.  
  347. Patrick Kincaid       618 Douglas Drive       Mill Valley, CA 94941
  348.  
  349. And remember...
  350.  
  351.                    We call it software
  352.                          because
  353.                     we cannot keep it
  354.                             up.
  355.